public class FarmMachineObserver {
    private String name;

    public FarmMachineObserver(String name) {
        this.name = name;
    }

    public void update() {
        System.out.println(name + " 收到环境变化通知，准备调整作业。");
    }
}